home *** CD-ROM | disk | FTP | other *** search
/ Fish With Names Like... / Fish With Names Like... 2.5.iso / pc / Media / Game.dir / 00005_Navigate.ls < prev    next >
Encoding:
Text File  |  2004-03-23  |  11.3 KB  |  684 lines

  1. on enterGame
  2.   setcursor()
  3.   set the volume of sound 2 to 190
  4. end
  5.  
  6. on goIndex
  7.   go("return")
  8. end
  9.  
  10. on playersOff
  11.   puppetSprite(7, 0)
  12.   puppetSprite(13, 0)
  13.   puppetSprite(14, 0)
  14.   puppetSprite(16, 0)
  15. end
  16.  
  17. on alwaysPuppets
  18.   puppetSprite(15, 1)
  19.   puppetSprite(40, 1)
  20. end
  21.  
  22. on goInstruct
  23.   puppetSprite(15, 0)
  24.   puppetSprite(16, 0)
  25.   playersOff()
  26.   resetVisibles()
  27.   puppetTransition(9)
  28.   go("ins")
  29. end
  30.  
  31. on goBegin
  32.   alwaysPuppets()
  33.   resetVisibles()
  34.   set the cursor of sprite 15 to 200
  35.   set the cursor of sprite 16 to 200
  36.   setplayers()
  37. end
  38.  
  39. on goSwim
  40.   puppetSprite(15, 1)
  41.   puppetSprite(40, 1)
  42.   set the cursor of sprite 15 to 200
  43.   set the cursor of sprite 16 to 200
  44.   set the locV of sprite 15 to the mouseV
  45.   set the locH of sprite 15 to the mouseH
  46.   setTarget()
  47.   startPoints()
  48. end
  49.  
  50. on setTarget
  51.   set the locV of sprite 16 to the mouseV + 18
  52.   set the locH of sprite 16 to the mouseH + 3
  53. end
  54.  
  55. on setTarget2
  56.   set the memberNum of sprite 15 to 3
  57.   set the locV of sprite 16 to the mouseV
  58.   set the locH of sprite 16 to the mouseH
  59. end
  60.  
  61. on nextFish
  62.   resetVisibles()
  63.   playersOff()
  64.   diverView()
  65.   goSwim()
  66.   setplayers()
  67. end
  68.  
  69. on stopGame
  70.   puppetSprite(15, 0)
  71.   puppetSprite(16, 0)
  72.   playersOff()
  73.   set the memberNum of sprite 40 to 69
  74.   resetVisibles()
  75.   puppetTransition(9)
  76.   go("GmOn")
  77. end
  78.  
  79. on goWait
  80.   puppetSprite(15, 1)
  81.   puppetSprite(40, 1)
  82.   set the cursor of sprite 15 to 200
  83.   set the cursor of sprite 16 to 200
  84.   setplayers()
  85.   set the memberNum of sprite 40 to 69
  86.   go(the frame)
  87.   if sprite 15 intersects 1 then
  88.     go(#next)
  89.   end if
  90. end
  91.  
  92. on setDiver
  93.   set the locV of sprite 15 to 320
  94.   set the locH of sprite 15 to 240
  95.   setTarget()
  96.   updateStage()
  97. end
  98.  
  99. on setplayers
  100.   sprite(7).visible = 1
  101.   sprite(8).visible = 1
  102.   sprite(9).visible = 1
  103.   sprite(10).visible = 1
  104.   sprite(11).visible = 1
  105.   sprite(12).visible = 1
  106.   sprite(14).visible = 1
  107.   sprite(20).visible = 1
  108.   sprite(40).visible = 1
  109.   updateStage()
  110. end
  111.  
  112. on diverView
  113.   set the constraint of sprite 15 to 3
  114.   set the constraint of sprite 16 to 3
  115.   if sprite 15 intersects 2 then
  116.     setTarget2()
  117.   else
  118.     set the memberNum of sprite 15 to 4
  119.   end if
  120. end
  121.  
  122. on levelTwo
  123.   diverView()
  124.   resetVisibles()
  125.   setplayers()
  126. end
  127.  
  128. on levelThree
  129.   diverView3()
  130.   goSwim3()
  131. end
  132.  
  133. on levelThreeFix
  134.   diverView3()
  135.   goSwim3Fix()
  136. end
  137.  
  138. on diverView3
  139.   set the constraint of sprite 15 to 3
  140.   set the constraint of sprite 16 to 3
  141.   if sprite 15 intersects 2 then
  142.     setTarget2()
  143.   else
  144.     set the memberNum of sprite 15 to 4
  145.   end if
  146. end
  147.  
  148. on goSwim3
  149.   puppetSprite(15, 1)
  150.   puppetSprite(40, 1)
  151.   set the cursor of sprite 15 to 200
  152.   set the cursor of sprite 16 to 200
  153.   set the locV of sprite 15 to the mouseV
  154.   set the locH of sprite 15 to the mouseH
  155.   setTarget()
  156.   startPoints3()
  157. end
  158.  
  159. on goSwim3Fix
  160.   set the cursor of sprite 15 to 200
  161.   set the cursor of sprite 16 to 200
  162.   set the locV of sprite 15 to the mouseV
  163.   set the locH of sprite 15 to the mouseH
  164.   setTarget()
  165. end
  166.  
  167. on startPoints3
  168.   if sprite 16 intersects sprite(47) then
  169.     goodGuy3()
  170.   end if
  171. end
  172.  
  173. on goodGuy3
  174.   puppetSprite(47, 1)
  175.   set the locH of sprite 47 to -50
  176.   set the locV of sprite 47 to 700
  177.   sprite(47).visible = 0
  178.   addScore()
  179.   updateStage()
  180. end
  181.  
  182. on nextFish3
  183.   resetVisibles()
  184.   playersOff3()
  185.   diverView3()
  186.   goSwim3()
  187.   setPlayers3()
  188. end
  189.  
  190. on playersOff3
  191.   puppetSprite(47, 0)
  192.   puppetSprite(13, 0)
  193.   puppetSprite(14, 0)
  194.   puppetSprite(16, 0)
  195. end
  196.  
  197. on setPlayers3
  198.   sprite(47).visible = 1
  199.   sprite(8).visible = 1
  200.   sprite(9).visible = 1
  201.   sprite(10).visible = 1
  202.   sprite(11).visible = 1
  203.   sprite(12).visible = 1
  204.   sprite(14).visible = 1
  205.   sprite(20).visible = 1
  206.   sprite(40).visible = 1
  207.   updateStage()
  208. end
  209.  
  210. on loseScore
  211.   if sprite 15 intersects sprite(20) then
  212.     badBOYS()
  213.   end if
  214. end
  215.  
  216. on badBOYS
  217. end
  218.  
  219. on badBoysoff
  220.   puppetSound("Boing")
  221.   set the memberNum of sprite 40 to the memberNum of sprite 40 - 1
  222. end
  223.  
  224. on scoreCheck
  225.   if the castNum of sprite 40 = 69 then
  226.     set the memberNum of sprite 40 to 69
  227.   else
  228.     levelThree()
  229.   end if
  230. end
  231.  
  232. on getTotals
  233.   go("Totals")
  234. end
  235.  
  236. on getTotals2
  237.   go("Totals2")
  238. end
  239.  
  240. on getTotals3
  241.   go("Totals3")
  242. end
  243.  
  244. on setcursor
  245.   set the cursor of sprite 21 to [1, 2]
  246.   set the cursor of sprite 22 to [1, 2]
  247.   set the cursor of sprite 23 to [1, 2]
  248.   set the cursor of sprite 24 to [1, 2]
  249.   set the cursor of sprite 25 to [1, 2]
  250.   set the cursor of sprite 26 to [1, 2]
  251.   set the cursor of sprite 27 to [1, 2]
  252.   set the cursor of sprite 28 to [1, 2]
  253.   set the cursor of sprite 29 to [1, 2]
  254.   set the cursor of sprite 30 to [1, 2]
  255.   set the cursor of sprite 31 to [1, 2]
  256.   set the cursor of sprite 32 to [1, 2]
  257.   updateStage()
  258. end
  259.  
  260. on resetVisibles
  261.   sprite(3).visible = 1
  262.   sprite(4).visible = 1
  263.   sprite(5).visible = 1
  264.   sprite(6).visible = 1
  265.   sprite(7).visible = 1
  266.   sprite(8).visible = 1
  267.   sprite(9).visible = 1
  268.   sprite(10).visible = 1
  269.   sprite(11).visible = 1
  270.   sprite(12).visible = 1
  271.   sprite(13).visible = 1
  272.   sprite(14).visible = 1
  273.   sprite(15).visible = 1
  274.   sprite(16).visible = 1
  275.   sprite(17).visible = 1
  276.   sprite(18).visible = 1
  277.   sprite(19).visible = 1
  278.   sprite(20).visible = 1
  279.   sprite(32).visible = 1
  280.   sprite(36).visible = 1
  281.   sprite(37).visible = 1
  282.   sprite(38).visible = 1
  283.   sprite(39).visible = 1
  284.   sprite(40).visible = 1
  285.   sprite(41).visible = 1
  286.   sprite(42).visible = 1
  287.   sprite(43).visible = 1
  288.   sprite(44).visible = 1
  289.   sprite(45).visible = 1
  290.   sprite(46).visible = 1
  291.   sprite(47).visible = 1
  292.   sprite(48).visible = 1
  293. end
  294.  
  295. on startPoints
  296.   if sprite 16 intersects sprite(7) then
  297.     goodGuy()
  298.   else
  299.   end if
  300.   if sprite 15 intersects sprite(13) then
  301.     goWrong()
  302.   else
  303.   end if
  304.   if sprite 15 intersects sprite(5) then
  305.     goWrong()
  306.   else
  307.   end if
  308.   if sprite 15 intersects sprite(6) then
  309.     goWrong()
  310.   end if
  311. end
  312.  
  313. on showCredits
  314.   puppetSprite(1, 1)
  315.   if sprite 15 intersects sprite(1) then
  316.     go(1, "Credit.dir")
  317.   end if
  318. end
  319.  
  320. on NoPuppets
  321.   puppetSprite(7, 0)
  322.   puppetSprite(15, 1)
  323.   puppetSprite(40, 1)
  324.   set the cursor of sprite 15 to 200
  325.   set the cursor of sprite 16 to 200
  326.   set the locV of sprite 15 to the mouseV
  327.   set the locH of sprite 15 to the mouseH
  328. end
  329.  
  330. on goWrong
  331.   goJail()
  332. end
  333.  
  334. on goJail
  335.   puppetSprite(15, 1)
  336.   puppetSprite(16, 1)
  337.   shrinkMe()
  338.   shrinkYou()
  339.   set the locH of sprite 15 to 60
  340.   set the locV of sprite 15 to 40
  341.   set the locH of sprite 16 to 60
  342.   set the locV of sprite 16 to 40
  343.   updateStage()
  344.   goSwim()
  345. end
  346.  
  347. on shrinkMe
  348.   if the castNum of sprite 15 = 4 then
  349.     set the castNum of sprite 15 to 210
  350.   else
  351.   end if
  352.   if the castNum of sprite 40 = 210 then
  353.     set the castNum of sprite 15 to 211
  354.   else
  355.   end if
  356.   if the castNum of sprite 40 = 211 then
  357.     set the castNum of sprite 15 to 212
  358.   else
  359.   end if
  360.   if the castNum of sprite 40 = 212 then
  361.     set the castNum of sprite 15 to 213
  362.   end if
  363.   if the castNum of sprite 40 = 213 then
  364.     set the castNum of sprite 15 to 214
  365.   else
  366.   end if
  367.   if the castNum of sprite 40 = 214 then
  368.     set the castNum of sprite 15 to 215
  369.   end if
  370.   if the castNum of sprite 40 = 215 then
  371.     set the castNum of sprite 15 to 216
  372.   else
  373.   end if
  374.   if the castNum of sprite 40 = 216 then
  375.     set the castNum of sprite 15 to 217
  376.   end if
  377. end
  378.  
  379. on shrinkYou
  380.   if the castNum of sprite 15 = 3 then
  381.     set the castNum of sprite 15 to 200
  382.   else
  383.   end if
  384.   if the castNum of sprite 40 = 200 then
  385.     set the castNum of sprite 15 to 201
  386.   else
  387.   end if
  388.   if the castNum of sprite 40 = 201 then
  389.     set the castNum of sprite 15 to 202
  390.   else
  391.   end if
  392.   if the castNum of sprite 40 = 202 then
  393.     set the castNum of sprite 15 to 203
  394.   end if
  395.   if the castNum of sprite 40 = 203 then
  396.     set the castNum of sprite 15 to 204
  397.   else
  398.   end if
  399.   if the castNum of sprite 40 = 204 then
  400.     set the castNum of sprite 15 to 205
  401.   end if
  402.   if the castNum of sprite 40 = 205 then
  403.     set the castNum of sprite 15 to 206
  404.   else
  405.   end if
  406.   if the castNum of sprite 40 = 206 then
  407.     set the castNum of sprite 15 to 207
  408.   end if
  409. end
  410.  
  411. on goodGuy
  412.   puppetSprite(7, 1)
  413.   set the locH of sprite 7 to -50
  414.   set the locV of sprite 7 to 700
  415.   sprite(7).visible = 0
  416.   addScore()
  417.   updateStage()
  418. end
  419.  
  420. on badGuy
  421.   puppetSprite(20, 1)
  422.   set the locH of sprite 20 to -50
  423.   set the locV of sprite 20 to 700
  424.   sprite(20).visible = 0
  425.   addScore()
  426.   updateStage()
  427. end
  428.  
  429. on getTotal
  430.   if the castNum of sprite 40 = 79 then
  431.     pts100()
  432.   else
  433.   end if
  434.   if the castNum of sprite 40 = 78 then
  435.     pts90()
  436.   else
  437.   end if
  438.   if the castNum of sprite 40 = 77 then
  439.     pts80()
  440.   else
  441.   end if
  442.   if the castNum of sprite 40 < 77 then
  443.     go("try")
  444.   end if
  445. end
  446.  
  447. on getTotal2
  448.   if the castNum of sprite 40 = 89 then
  449.     pts200()
  450.   else
  451.   end if
  452.   if the castNum of sprite 40 = 88 then
  453.     pts190()
  454.   else
  455.   end if
  456.   if the castNum of sprite 40 = 87 then
  457.     pts180()
  458.   else
  459.   end if
  460.   if the castNum of sprite 40 = 86 then
  461.     pts170()
  462.   else
  463.   end if
  464.   if the castNum of sprite 40 < 86 then
  465.     go("TryAgain2")
  466.   end if
  467. end
  468.  
  469. on getTotal3
  470.   if the castNum of sprite 40 = 99 then
  471.     pts300()
  472.   else
  473.   end if
  474.   if the castNum of sprite 40 = 98 then
  475.     pts290()
  476.   else
  477.   end if
  478.   if the castNum of sprite 40 = 97 then
  479.     pts280()
  480.   else
  481.   end if
  482.   if the castNum of sprite 40 = 96 then
  483.     pts270()
  484.   else
  485.   end if
  486.   if the castNum of sprite 40 < 96 then
  487.     go("Try")
  488.   end if
  489. end
  490.  
  491. on pts100
  492.   go("100pts")
  493. end
  494.  
  495. on pts90
  496.   go("90pts")
  497. end
  498.  
  499. on pts80
  500.   go("80pts")
  501. end
  502.  
  503. on pts200
  504.   go("200pts")
  505. end
  506.  
  507. on pts190
  508.   go("190pts")
  509. end
  510.  
  511. on pts180
  512.   go("180pts")
  513. end
  514.  
  515. on pts170
  516.   go("170pts")
  517. end
  518.  
  519. on pts300
  520.   go("300pts")
  521. end
  522.  
  523. on pts290
  524.   go("290pts")
  525. end
  526.  
  527. on pts280
  528.   go("280pts")
  529. end
  530.  
  531. on pts270
  532.   go("270pts")
  533. end
  534.  
  535. on addScore
  536.   puppetSound("score")
  537.   set the memberNum of sprite 40 to the memberNum of sprite 40 + 1
  538. end
  539.  
  540. on scoreReset
  541.   set the memberNum of sprite 40 to 69
  542.   updateStage()
  543. end
  544.  
  545. on squrVoice
  546.   puppetSound("LsSqur.aif")
  547. end
  548.  
  549. on jackVoice
  550.   puppetSound("jacknife.aif")
  551. end
  552.  
  553. on dogVoice
  554.   puppetSound("DogSnap.aif")
  555. end
  556.  
  557. on angelVoice
  558.   puppetSound("QnAngel.aif")
  559. end
  560.  
  561. on starVoice
  562.   puppetSound("Star.aif")
  563. end
  564.  
  565. on spadeVoice
  566.   puppetSound("AtSpade.aif")
  567. end
  568.  
  569. on fileVoice
  570.   puppetSound("WhtFile.aif")
  571. end
  572.  
  573. on bandVoice
  574.   puppetSound("Bandbut.aif")
  575. end
  576.  
  577. on ballVoice
  578.   puppetSound("Ballfish.aif")
  579. end
  580.  
  581. on trnkVoice
  582.   puppetSound("SmTrunk.aif")
  583. end
  584.  
  585. on guitarVoice
  586.   puppetSound("GuitFish.aif")
  587. end
  588.  
  589. on lsbutVoice
  590.   puppetSound("LsBut.aif")
  591. end
  592.  
  593. on doctorVoice
  594.   puppetSound("Doctor.aif")
  595. end
  596.  
  597. on flounderVoice
  598.   puppetSound("Flounder.aif")
  599. end
  600.  
  601. on parrotVoice
  602.   puppetSound("Parrot.aif")
  603. end
  604.  
  605. on batVoice
  606.   puppetSound("Bat.aif")
  607. end
  608.  
  609. on pufferVoice
  610.   puppetSound("Puffer.aif")
  611. end
  612.  
  613. on trumpetVoice
  614.   puppetSound("Trumpet.aif")
  615. end
  616.  
  617. on kgangelVoice
  618.   puppetSound("KgAngel.aif")
  619. end
  620.  
  621. on cowVoice
  622.   puppetSound("Cow.aif")
  623. end
  624.  
  625. on horseVoice
  626.   puppetSound("Horse.aif")
  627. end
  628.  
  629. on hawkVoice
  630.   puppetSound("Hawk.aif")
  631. end
  632.  
  633. on drumVoice
  634.   puppetSound("Drum.aif")
  635. end
  636.  
  637. on blennyVoice
  638.   puppetSound("Blenny.aif")
  639. end
  640.  
  641. on stargazerVoice
  642.   puppetSound("Gaze.aif")
  643. end
  644.  
  645. on clownVoice
  646.   puppetSound("Clown.aif")
  647. end
  648.  
  649. on GrangelVoice
  650.   puppetSound("GrAngel.aif")
  651. end
  652.  
  653. on hatVoice
  654.   puppetSound("Hat.aif")
  655. end
  656.  
  657. on foureyeVoice
  658.   puppetSound("Four.aif")
  659. end
  660.  
  661. on barVoice
  662.   puppetSound("BarJk.aif")
  663. end
  664.  
  665. on click downSound, upSound
  666.   if stringp(downSound) then
  667.     puppetSound(downSound)
  668.   end if
  669.   this = the castNum of sprite the clickOn
  670.   set the castNum of sprite the clickOn to this + 1
  671.   updateStage()
  672.   repeat while the stillDown or soundBusy(1)
  673.   end repeat
  674.   if stringp(upSound) then
  675.     puppetSound(upSound)
  676.   end if
  677.   set the castNum of sprite the clickOn to this
  678.   updateStage()
  679.   repeat while soundBusy(1)
  680.   end repeat
  681.   puppetSound(0)
  682.   updateStage()
  683. end
  684.